home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / etc / init / hwclock-save.conf < prev    next >
Text File  |  2009-10-22  |  444b  |  18 lines

  1. # hwclock-save - save system clock to hardware clock
  2. #
  3. # This task saves the time from the system clock back to the hardware
  4. # clock on shutdown.
  5.  
  6. description    "save system clock to hardware clock"
  7.  
  8. start on runlevel [06]
  9.  
  10. task
  11.  
  12. script
  13.     . /etc/default/rcS
  14.     [ "$UTC" = "yes" ] && tz="--utc" || tz="--localtime"
  15.     [ "$BADYEAR" = "yes" ] && badyear="--badyear"
  16.     exec hwclock --rtc=/dev/rtc0 --systohc $tz --noadjfile $badyear
  17. end script
  18.